/* global malarkey:false, toastr:false, moment:false */
(function() {
  'use strict';

  angular
    .module('votingBackend')
    .constant('malarkey', malarkey)
    .constant('toastr', toastr)
    .constant('moment', moment)

    .constant('AUTH_EVENTS', {
    	loginSuccess: 'auth-login-success',
    	loginFailed: 'auth-login-failed',
    	logoutSuccess: 'auth-logout-success',
    	sessionTimeout: 'auth-session-timeout',
    	notAuthenticated: 'auth-not-authenticated',
    	notAuthorized: 'auth-not-authorized'
    })

    .constant('USER_ROLES', {
    	all: '*',
    	admin: 'admin',
    	editor: 'editor',
    	guest: 'guest'
    })

})();
